using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace YushengMall.Backend.Api.Entity
{
    /// <summary>
    /// 用户表User
    /// </summary>
    public record Users : EntityBase
    {
        /// <summary>
        /// 用户名
        /// </summary>
        /// <value></value>
        [Column(TypeName ="nvarchar(20)")]
        public string UserName { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        /// <value></value>
        [Column(TypeName ="nvarchar(20)")]
        public string NickName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(20)")]
        public string PassWord { get; set; }
        /// <summary>
        /// 微信号
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(50)")]
        public string VChartNumber { get; set; }
        /// <summary>
        /// QQ号
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(20)")]
        public string QQNumber { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(11)")]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(100)")]
        public string Email { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(100)")]
        public string CardNumber { get; set; }
        /// <summary>
        /// 真名
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(100)")]
        public string RealName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        /// <value></value>
        [Column(TypeName ="char")]
        public char Sex {get;set;}
        /// <summary>
        /// 角色ID，角色表唯一标识
        /// </summary>
        /// <value></value>
        public Guid RoleID { get; set; }
        public virtual IEnumerable<UserRole> Role{get;set;}

    }
}